<div class="m10 w600">
<form id="form" action="{url('app/edit')}">
<input type="hidden" name="id" value="{$id}" /> 
<input type="hidden" name="pid" value="{$pid}" /> 
<input type="hidden" name="types" value="{$types}" /> 
<table class="table">
    <tr>
        <th>辅助图标:</th>
        <td>
            <textarea class="textarea w280 h50"  type="text" name="icon">{$info['icon']}</textarea>
        </td>
    </tr>
    <tr>
        <th>{if $types == 1}应用模块分组{else}模块名称{/if}:</th>
        <td>
            <input datatype="*" class="input w200"  type="text" name="name" value="{$info['name']}" />
        </td>
    </tr>
    <tr>
        <th>排序:</th>
        <td>
            <input datatype="n" class="input w60"  type="text" name="neworder" value="{$info['neworder']}" />
        </td>
    </tr>  
    <tr>
        <th>显示隐藏:</th>
        <td>
<select class="select" name="is_show" datatype="*">
    <option value=" " {if !$id} selected="selected"{/if}></option>
    <option value="1" {if $id && $info['is_show'] == 1}selected="selected"{/if}>显示</option>
    <option value="0" {if $id && $info['is_show'] == 0}selected="selected"{/if}>隐藏</option>
</select>
        </td>
    </tr>     
{if $types == 1}
    <tr>
        <th>应用名称:</th>
        <td>
            <input readonly="readonly" class="input w200 gray-input" type="text"  name="app" value="{if $rel['app']}{$rel['app']}{else}{$info['app']}{/if}" />
        </td>
    </tr>
{elseif $types == 2}
    <tr>
        <th>应用名称:</th>
        <td>
            <input readonly="readonly" class="input w200 gray-input" type="text"  name="app" value="{if $rel['app']}{$rel['app']}{else}{$info['app']}{/if}" />
        </td>
    </tr>
    <tr>
        <th>控制器名称:</th>
        <td>
            <input datatype="alpha" class="input w200" type="text"  name="controller" value="{$info['controller']}" />
        </td>
    </tr>
{elseif $types == 3}
    <tr>
        <th>应用名称:</th>
        <td>
            <input readonly="readonly" class="input w200 gray-input" type="text"  name="app" value="{if $rel['app']}{$rel['app']}{else}{$info['app']}{/if}" />
        </td>
    </tr>
    <tr>
        <th>控制器名称:</th>
        <td>
            <input readonly="readonly" class="input w200 gray-input" type="text"  name="controller" value="{if $rel['app']}{$rel['controller']}{else}{$info['controller']}{/if}" />
        </td>
    </tr>
    <tr>
        <th>方法名称:</th>
        <td>
            <input datatype="*" class="input w200" type="text"  name="method" value="{$info['method']}" />
        </td>
    </tr>
{else}
    <tr>
        <th>应用名称:</th>
        <td>
            <input {if $info['app']} readonly="readonly" class="input w100 gray-input"{else}class="input w100"{/if} datatype="alpha" type="text"  name="app" value="{$info['app']}" />  <span class="gray">添加后,禁止修改</span>
        </td>
    </tr>
{/if}
</table> 
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form',function(){ 
    $('#form').forms();
})
</script>